package com.kisszpy.core.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDao<T> {
	public void save(T entity);
	public void delete(T entity);
	public void update(T entity);
	public T findById(Class<T> className,Serializable id);
	public List<T> findAll(Class<T> className);
	public void executeNativeSQL(String sql,Object[] params);
	public void executeHQL(String hql,Object[] params);
	public List<T> executeQueryBySQL(String sql,Object[] params);
	public List<T> executeQueryByHQL(String hql,Object[] params);
}
